package com.jy.adscm.operation.mscyb.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.jy.adscm.bean.system.JyUser;
import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.operation.base.bean.JyCustomerProvider;
import com.jy.adscm.operation.base.bean.JyGoods;
import com.jy.adscm.operation.cg.bean.CgBom;
import com.jy.adscm.operation.cg.bean.CgMaterial;
import com.jy.adscm.operation.cg.bean.CgSupplier;
import com.jy.adscm.operation.mscyb.bean.JqylMaterial;
import com.baomidou.mybatisplus.service.IService;
import com.jy.adscm.operation.mscyb.bean.QueryJqylMaterial;
import com.jy.adscm.operation.purchase.bean.Purchasebom;
import com.jy.adscm.operation.purchase.bean.Supplier;
import com.jy.adscm.security.utils.Token;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zyl
 * @since 2018-11-29
 */
public interface JqylMaterialService extends IService<JqylMaterial> {

    List<JyUser> selectTaskPerformPerson();

    Boolean updateJqylMaterialy(JqylMaterial jqylMaterial, Token token);

    Page<JqylMaterial> selectJqylMaterial(Page<JqylMaterial> page, QueryJqylMaterial queryJqylMaterial);

    List<CgMaterial> selectJqylMaterialGoods();

    List<CgSupplier> selectJqylMaterialProvider(String goodsId);


    /**
     * 修改库存
     * @param id 需要修改库存的物料id
     * @param value 对应的值
     * @return
     */
    JqylMaterial updateJqylMaterialyValue(String id,Float value) throws AdscmSystemException;

    boolean insertJqylMaterial(JqylMaterial jqylMaterial);
}
